home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / prim / tabify.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 32 3a 35 | 35 20 31 39 39 35 0a 3b | 14:22:5|5 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 74 61 62 69 66 |/lisp/pr|im/tabif|
|00000090| 79 2e 65 6c 0a 3b 3b 3b | 20 65 6d 61 63 73 20 76 |y.el.;;;| emacs v|
|000000a0| 65 72 73 69 6f 6e 20 31 | 39 2e 31 33 20 58 45 6d |ersion 1|9.13 XEm|
|000000b0| 61 63 73 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |acs Luci|d..;;; b|
|000000c0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000d0| 32 2e 32 35 3b 20 31 2d | 53 65 70 2d 39 34 2e 0a |2.25; 1-|Sep-94..|
|000000e0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000f0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|00000100| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000110| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000120| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000130| 38 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |8...(if |(and (bo|
|00000140| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000150| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000160| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|00000170| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|00000180| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|00000190| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|000001a0| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 22 29 |cs-versi|on "19")|
|000001b0| 29 29 0a 20 20 20 20 28 | 65 72 72 6f 72 20 22 54 |)). (|error "T|
|000001c0| 68 69 73 20 66 69 6c 65 | 20 77 61 73 20 63 6f 6d |his file| was com|
|000001d0| 70 69 6c 65 64 20 66 6f | 72 20 45 6d 61 63 73 20 |piled fo|r Emacs |
|000001e0| 31 39 2e 22 29 29 0a 0a | 28 66 73 65 74 20 27 75 |19."))..|(fset 'u|
|000001f0| 6e 74 61 62 69 66 79 20 | 23 5b 28 73 74 61 72 74 |ntabify |#[(start|
|00000200| 20 65 6e 64 29 20 22 8a | 8c 65 08 7d 88 09 62 88 | end) ".|.e.}..b.|
|00000210| c2 c3 c4 c5 23 ad 99 60 | 69 c4 1e 06 1e 07 1e 08 |....#..`|i.......|
|00000220| c3 09 78 88 0e 08 60 7c | 88 0e 07 6a 88 2b aa 60 |..x...`||...j.+.`|
|00000230| 2a 87 22 20 5b 65 6e 64 | 20 73 74 61 72 74 20 73 |*." [end| start s|
|00000240| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 22 09 |earch-fo|rward ".|
|00000250| 22 20 6e 69 6c 20 74 20 | 69 6e 64 65 6e 74 2d 74 |" nil t |indent-t|
|00000260| 61 62 73 2d 6d 6f 64 65 | 20 63 6f 6c 75 6d 6e 20 |abs-mode| column |
|00000270| 74 61 62 2d 62 65 67 5d | 20 34 20 22 5c 0a 43 6f |tab-beg]| 4 "\.Co|
|00000280| 6e 76 65 72 74 20 61 6c | 6c 20 74 61 62 73 20 69 |nvert al|l tabs i|
|00000290| 6e 20 72 65 67 69 6f 6e | 20 74 6f 20 6d 75 6c 74 |n region| to mult|
|000002a0| 69 70 6c 65 20 73 70 61 | 63 65 73 2c 20 70 72 65 |iple spa|ces, pre|
|000002b0| 73 65 72 76 69 6e 67 20 | 63 6f 6c 75 6d 6e 73 2e |serving |columns.|
|000002c0| 0a 43 61 6c 6c 65 64 20 | 6e 6f 6e 2d 69 6e 74 65 |.Called |non-inte|
|000002d0| 72 61 63 74 69 76 65 6c | 79 2c 20 74 68 65 20 72 |ractivel|y, the r|
|000002e0| 65 67 69 6f 6e 20 69 73 | 20 73 70 65 63 69 66 69 |egion is| specifi|
|000002f0| 65 64 20 62 79 20 61 72 | 67 75 6d 65 6e 74 73 0a |ed by ar|guments.|
|00000300| 53 54 41 52 54 20 61 6e | 64 20 45 4e 44 2c 20 72 |START an|d END, r|
|00000310| 61 74 68 65 72 20 74 68 | 61 6e 20 62 79 20 74 68 |ather th|an by th|
|00000320| 65 20 70 6f 73 69 74 69 | 6f 6e 20 6f 66 20 70 6f |e positi|on of po|
|00000330| 69 6e 74 20 61 6e 64 20 | 6d 61 72 6b 2e 0a 54 68 |int and |mark..Th|
|00000340| 65 20 76 61 72 69 61 62 | 6c 65 20 60 74 61 62 2d |e variab|le `tab-|
|00000350| 77 69 64 74 68 27 20 63 | 6f 6e 74 72 6f 6c 73 20 |width' c|ontrols |
|00000360| 74 68 65 20 73 70 61 63 | 69 6e 67 20 6f 66 20 74 |the spac|ing of t|
|00000370| 61 62 20 73 74 6f 70 73 | 2e 22 20 22 72 22 5d 29 |ab stops|." "r"])|
|00000380| 0a 28 66 73 65 74 20 27 | 74 61 62 69 66 79 20 23 |.(fset '|tabify #|
|00000390| 5b 28 73 74 61 72 74 20 | 65 6e 64 29 20 22 8a 8c |[(start |end) "..|
|000003a0| 08 09 7d 88 08 62 88 c2 | c3 c4 c5 23 ad 92 69 c5 |..}..b..|...#..i.|
|000003b0| 1e 06 1e 07 c8 94 60 7c | 88 0e 07 6a 88 2a aa 67 |......`||...j.*.g|
|000003c0| 2a 87 22 20 5b 73 74 61 | 72 74 20 65 6e 64 20 72 |*." [sta|rt end r|
|000003d0| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|000003e0| 20 22 5b 20 09 5d 5b 20 | 09 5d 5b 20 09 5d 2a 22 | "[ .][ |.][ .]*"|
|000003f0| 20 6e 69 6c 20 74 20 69 | 6e 64 65 6e 74 2d 74 61 | nil t i|ndent-ta|
|00000400| 62 73 2d 6d 6f 64 65 20 | 63 6f 6c 75 6d 6e 20 30 |bs-mode |column 0|
|00000410| 5d 20 34 20 22 5c 0a 43 | 6f 6e 76 65 72 74 20 6d |] 4 "\.C|onvert m|
|00000420| 75 6c 74 69 70 6c 65 20 | 73 70 61 63 65 73 20 69 |ultiple |spaces i|
|00000430| 6e 20 72 65 67 69 6f 6e | 20 74 6f 20 74 61 62 73 |n region| to tabs|
|00000440| 20 77 68 65 6e 20 70 6f | 73 73 69 62 6c 65 2e 0a | when po|ssible..|
|00000450| 41 20 67 72 6f 75 70 20 | 6f 66 20 73 70 61 63 65 |A group |of space|
|00000460| 73 20 69 73 20 70 61 72 | 74 69 61 6c 6c 79 20 72 |s is par|tially r|
|00000470| 65 70 6c 61 63 65 64 20 | 62 79 20 74 61 62 73 0a |eplaced |by tabs.|
|00000480| 77 68 65 6e 20 74 68 69 | 73 20 63 61 6e 20 62 65 |when thi|s can be|
|00000490| 20 64 6f 6e 65 20 77 69 | 74 68 6f 75 74 20 63 68 | done wi|thout ch|
|000004a0| 61 6e 67 69 6e 67 20 74 | 68 65 20 63 6f 6c 75 6d |anging t|he colum|
|000004b0| 6e 20 74 68 65 79 20 65 | 6e 64 20 61 74 2e 0a 43 |n they e|nd at..C|
|000004c0| 61 6c 6c 65 64 20 6e 6f | 6e 2d 69 6e 74 65 72 61 |alled no|n-intera|
|000004d0| 63 74 69 76 65 6c 79 2c | 20 74 68 65 20 72 65 67 |ctively,| the reg|
|000004e0| 69 6f 6e 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ion is s|pecified|
|000004f0| 20 62 79 20 61 72 67 75 | 6d 65 6e 74 73 0a 53 54 | by argu|ments.ST|
|00000500| 41 52 54 20 61 6e 64 20 | 45 4e 44 2c 20 72 61 74 |ART and |END, rat|
|00000510| 68 65 72 20 74 68 61 6e | 20 62 79 20 74 68 65 20 |her than| by the |
|00000520| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 70 6f 69 6e |position| of poin|
|00000530| 74 20 61 6e 64 20 6d 61 | 72 6b 2e 0a 54 68 65 20 |t and ma|rk..The |
|00000540| 76 61 72 69 61 62 6c 65 | 20 60 74 61 62 2d 77 69 |variable| `tab-wi|
|00000550| 64 74 68 27 20 63 6f 6e | 74 72 6f 6c 73 20 74 68 |dth' con|trols th|
|00000560| 65 20 73 70 61 63 69 6e | 67 20 6f 66 20 74 61 62 |e spacin|g of tab|
|00000570| 20 73 74 6f 70 73 2e 22 | 20 22 72 22 5d 29 0a 28 | stops."| "r"]).(|
|00000580| 70 72 6f 76 69 64 65 20 | 27 74 61 62 69 66 79 29 |provide |'tabify)|
|00000590| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+